<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!--
    block 块元素
    inline 行内元素
    inline-block 是块元素，但是可以内联，在一行
    none 隐藏
    -->
    <style>
        div {
            width: 300px;
            height: 100px;
            border: 1px solid red;
            display: inline;
        }
        span {
            width: 300px;
            height: 100px;
            border: 1px solid red;
            display: block;
        }
    </style>
</head>
<body>

<div>div块元素</div>
<span>span行内元素</span>
</body>
</html>